package com.edu.exam.enums.quality.monitoring;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 权限类型枚举
 */
public enum PermissionType implements BaseEnum {
    READ("READ", "读"),
    WRITE("WRITE", "写"),
    DELETE("DELETE", "删除"),
    EXECUTE("EXECUTE", "执行"),
    APPROVE("APPROVE", "审批"),
    REJECT("REJECT", "拒绝"),
    MODIFY("MODIFY", "修改"),
    CREATE("CREATE", "创建"),
    VIEW("VIEW", "查看"),
    EXPORT("EXPORT", "导出"),
    IMPORT("IMPORT", "导入"),
    PRINT("PRINT", "打印"),
    DOWNLOAD("DOWNLOAD", "下载"),
    UPLOAD("UPLOAD", "上传"),
    SHARE("SHARE", "分享");

    private final String code;
    private final String description;

    PermissionType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
